<div class="container">
  <div class="searchModule">
    <input type="text" [(ngModel)]="keyword">
    <button (click)="doSearch()">搜索</button>
  </div>
  <ul *ngIf="list.length != 0">
    <li *ngFor="let item of list;let key=index;">
      <span>{{item}}</span>
      <span>---</span>
      <button (click)="deleteItem(key)">X</button>
    </li>
  </ul>
  <pre>{{list | json}}</pre>
</div>
